diff options
Diffstat (limited to 'paste/paste.php')
-rw-r--r-- | paste/paste.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/paste.php b/paste/paste.php index fbcdf2c..51f5d9f 100644 --- a/paste/paste.php +++ b/paste/paste.php @@ -35,6 +35,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. require_once("config.php"); require_once("include/pastify.inc"); +// check config if (!is_subclass_of($config['storage'], 'StorageEngine')) { header('HTTP/1.0 503 Service Unavailable'); @@ -94,7 +95,7 @@ if (isset($_POST['text']) && "" != ($ttemp = rtrim($_POST['text']))) $text = stripslashes($text); $finalText = PastifyText($text, $language, $desc); - $url = CreatePage($finalText); + $url = $config['storage']->setContent($finalText); # Note: this function was pretty specific to my implementation. It stored # paste metadata about the language used, description, and URL, as well as |