mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
Hardcoded paths fix
using APPPATH instead of regular dir name.
This commit is contained in:
parent
6cc7ba2e92
commit
09851c5709
@ -297,7 +297,7 @@ class Pastes extends CI_Model
|
|||||||
//diff
|
//diff
|
||||||
//yes, I'm aware, two times htmlspecialchars_decode(). Needs to be, since it's saved that way in the DB from the original stikked author ages ago ;)
|
//yes, I'm aware, two times htmlspecialchars_decode(). Needs to be, since it's saved that way in the DB from the original stikked author ages ago ;)
|
||||||
|
|
||||||
include_once ('./application/libraries/finediff.php');
|
include_once (APPPATH.'/libraries/finediff.php');
|
||||||
$from_text = htmlspecialchars_decode(utf8_decode($row['raw']));
|
$from_text = htmlspecialchars_decode(utf8_decode($row['raw']));
|
||||||
$to_text = htmlspecialchars_decode(utf8_decode($data['raw']));
|
$to_text = htmlspecialchars_decode(utf8_decode($data['raw']));
|
||||||
$opcodes = FineDiff::getDiffOpcodes($from_text, $to_text, FineDiff::$wordGranularity);
|
$opcodes = FineDiff::getDiffOpcodes($from_text, $to_text, FineDiff::$wordGranularity);
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Function list:
|
* Function list:
|
||||||
* Classes list:
|
* Classes list:
|
||||||
*/
|
*/
|
||||||
require_once ('./'.APPPATH.'/libraries/phpqrcode/qrlib.php');
|
require_once (APPPATH.'/libraries/phpqrcode/qrlib.php');
|
||||||
$qrurl = $url;
|
$qrurl = $url;
|
||||||
|
|
||||||
if ($snipurl != false)
|
if ($snipurl != false)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Function list:
|
* Function list:
|
||||||
* Classes list:
|
* Classes list:
|
||||||
*/
|
*/
|
||||||
require_once ('./'.APPPATH.'/libraries/phpqrcode/qrlib.php');
|
require_once (APPPATH.'/libraries/phpqrcode/qrlib.php');
|
||||||
$qrurl = $url;
|
$qrurl = $url;
|
||||||
|
|
||||||
if ($snipurl != false)
|
if ($snipurl != false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user